package com.inool.model;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.inool.typehandler.ScheduleInfoListTypeHandler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName(value="course_schedule",autoResultMap = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseSchedule {
    
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value="schedule_info",typeHandler = ScheduleInfoListTypeHandler.class)
    private List<ScheduleInfo> scheduleInfo;
    
    private String courseId;

    private String staffNumber;
    @TableField(exist = false)  
    private Teacher teacher;
    @TableField(exist = false)
    private Course course;

    private Integer capacity;
    @TableField(exist = false)
    private Integer enrolledStudents;

}
